#include "TOP.html"
#if $edit
<!-- Open editing if edit alowed -->
<form action="$c_abspath/pod/$pod.id" method="POST">
  <div id='podcastEdit'>
    <a href='javascript:loadXMLDoc("forms.podcastEdit.$pod.id", "podcastEdit");'>[ Edit this podcast ]</a>
    <a onClick='return confirm ("Delete podcast No. $(pod.id)?")' href='$c_abspath/pod/$pod.id/del'>[ Remove this podcast ]</a></br>
#end if
<!-- Show main podcast entry -->
	<h1><a name='podcast'>$pod.subject</a></h1>
        <h2>$pod.created</h2>

#filter Filter
        $pod.shownote
#filter WebSafe
<table border='0' width='100%' cellpadding='0' cellspacing='0'><tr valign='middle'>
#if len($pod.url) > 0
<td width='20'><div class='play'>
    <object type="application/x-shockwave-flash" data="player.swf?&song_url=$pod.url&b_bgcolor=ffffff&b_fgcolor=0a0a0a" width="17" height="17">
        <param name="movie" value="player.swf?&song_url=$pod.url&b_bgcolor=ffffff&b_fgcolor=0a0a0a" />
	<img src="noflash.gif" width="17" height="17" alt="" />
    </object>
</td><td align='left'><a href='$pod.url'>[ Download ]</a></td>
#end if
</tr></table>

<!-- Comments blok -->
	<a name='comments'/>
	<h1>Comments ($pod.commnum)</h1>
<!-- Show all comments -->
#for comm in $comments
<div class='comment'>
	<div class='commauthline'>
           <span class='commauth'>$comm.author</span>
           <span class='commdate'>$comm.created ($comm.id)</span>
        </div>
#filter Filter
	   $comm.comment
#if $edit
<a href='$c_abspath/pod/$pod.id/comment/$comm.id/del'>[ Delete ]</a>
#end if
#filter WebSafe
</div>
#end for

#if $edit
</div>
</form>
<!-- Close editing -->
#end if
<form action="$c_abspath/pod/$pod.id/comment" method="POST">
  <div id='podcastAddComment'>
    <a href='javascript:loadXMLDoc("forms.podcastAddComment.$pod.id", "podcastAddComment");'>Add new comment</a>
  </div>
</form>
#include "BOTTOM.html"
